import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 场站列表
export function listPointStandardField(params){

  return request({
    url: '/system/point-standard/list',
    method: 'post',
    data: params
  })
}

// 查询详细
export function getPointStandardField(id) {
  return request({
    url: '/system/point-standard/detail?id=' + id,
    method: 'get'
  })
}

// 新增标准点表
export function addPointStandardField(data) {
  return request({
    url: '/system/point-standard/add',
    method: 'post',
    data: data
  })
}

// 修改标准点表
export function updatePointStandardField(data) {
  return request({
    url: '/system/point-standard/update',
    method: 'post',
    data: data
  })
}

// 删除标准点表
export function delPointStandardField(id) {
  return request({
    url: '/system/point-standard/del?id=' + id,
    method: 'post'
  })
}

export function batchDelPointStandardField(ids) {
  const params = {
    'ids' : ids
  }
  return request({
    url: '/system/point-standard/batchDel',
    method: 'post',
    data : params
  })
}

